<template>
  <div class="home">
    <h2>Home</h2>
    <div>
      <router-link to="/home/recommend">推荐</router-link>
      <router-link to="/home/ranking">排行</router-link>
    </div>
    <router-view></router-view>
    <button v-on:click="logoutClick">退出登录</button>
  </div>
</template>

<script setup>
function logoutClick(){
  localStorage.removeItem('token')
}
</script>

<style scoped>

</style>